package cn.edu.xmist.state;

public class ConcreteState1Impl extends State {
    @Override
    public void handle1() {
        System.out.println("这个是执行状态1的逻辑");
    }

    @Override
    public void handle2() {
        /**
         * 从状态1切换到状态2 --- 》 handle2
         */
        super.context.setCurrentState(Context.STATE2);

        super.context.handle2();
    }
}
